$.get("js/work.csv",function (temp) {
    temp = temp.split("\r\n");
    // console.log(temp);
    var show_value=[];
    for(var i=0;i<temp.length;i++){
        var data1=temp[i].split(',');
        // console.log(data)
        show_value.push(data1);
    }
    // console.log(show_value[0][1]);
    var name_company=[];
    var price_month=[];
    var number_employee=[];
    for(var i=1;i<show_value.length;i++){
        name_company.push(show_value[i][0]);
        price_month.push(show_value[i][2]);
        number_employee.push(show_value[i][6]);
    }
    var myChart = echarts.init(document.getElementById("main"));

        var option = {
            title: {
                            text: "苏永权",
                            left: "center",
                          },
            legend:{
                right:'10%',
            },
            xAxis:[{
               name:show_value[0][0],
               type:"category",
               data:name_company,
            
            }],
            yAxis:[{
                name:show_value[0][2],
                min:1,
                max:23000,
            },{
                name:show_value[0][6],
                min:1,
                max:100,
            }],
            series: [
                {
                    type: "line",
                    name:show_value[0][2],
                    data:price_month,
                    yAxisIndex:0,
                },
                {
                    type:"bar",
                    name:show_value[0][6],
                    data:number_employee,
                    yAxisIndex:1,
                }
            ],
        };
        myChart.setOption(option);
})